<!-- 随屏 -->
<div class="header2" style="display: none;">
  <div class="header2-wrap">
    <ul class="navi_menu menu">
      {eju:navig position_id='1' type='top' currentstyle="act" id="field"}
      <li> <a href="{$field.navig_url}" class="{$field.currentstyle}" {$field.target} {$field.nofollow}> {$field.navig_name} </a> </li>
      {/eju:navig}
    </ul>
    <div class="fr" style="width: 610px">
      <div class="search navigator-bar"> 
        <!-- 搜索 -->
        <div class="search-box clearfix"> {eju:searchform typeid='1' type='default'}
          <form class="" style="height: 100%;" method="get" action="{$field.action}">
            {$field.hidden} <span class="sel-val" style="line-height: 30px; height: 30px;"><span class="state" id="choosediv" chooseurl="loupan">新房</span></span>
            <input style="height: 30px;" type="text" name="keywords" placeholder="请输入查找的楼盘" class="search-inp" value="{$Request.param.keywords}"/>
            <button  type="submit" class="search-btn"></button>
            <div class="search-list" id="newcon_ul"> </div>
          </form>
          {/eju:searchform} </div>
        <!-- 搜索 end--> 
      </div>
      <div class="hot-phone"> 咨询热线：<span class="phone-txt"> {eju:global name='web_attr_2'/} </span> </div>
      <div class="btn-area"> <a href="javascript:;" data-name='报名看房' data-type='海口首页_报名看房' class="btn2 btn-reg common-free-mobile-btn bmkf-up">报名看房</a> </div>
    </div>
    <div class="clear"> </div>
  </div>
</div>
<!-- 随屏 end--> 
<script>

    //顶部随屏
    $(function(){
        if($(".page-menu").length == 0 && $(".header-outer").length == 0){
            $(window).scroll(function(){
                var height = $(document).scrollTop();
                var headerHeight = $(".header").height();
                if(height > headerHeight){
                    $('.header2').fadeIn('slow',function(){
                        $(this).css('display','block');
                    });
                }else{
                    $('.header2').fadeOut('slow',function(){
                        $(this).css('display','none');
                    });
                }
            });
        }
    });
</script>